package com.envper.mysql.domain.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;
import java.time.LocalDateTime;


import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 日志表 实体类。
 *
 * @author admin
 * @since 2025-05-07
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table("t_log")
public class TLog implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 日志ID
     */
    @Id
    private Long id;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * IP
     */
    private String ip;

    /**
     * 平台
     */
    private String platform;

    /**
     * 操作类型
     */
    private String type;

    /**
     * 内容
     */
    private String content;

    /**
     * 创建时间
     */
    private LocalDateTime created;

}
